package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationDangerNoticeDao;
import com.site.wisdom_construction.entity.personnelModule.EducationDangerNotice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/19
 * @Description
 */
@Service
public class EducationDangerNoticeService implements EducationDangerNoticeDao {
    @Autowired
    private EducationDangerNoticeDao educationDangerNoticeDao;

    @Override
    public int insertEducationDangerNotice(Map map) {
        return educationDangerNoticeDao.insertEducationDangerNotice(map);
    }

    @Override
    public int deleteEducationDangerNotice(Map map) {
        return educationDangerNoticeDao.deleteEducationDangerNotice(map);
    }

    @Override
    public int updateEducationDangerNotice(Map map) {
        return educationDangerNoticeDao.updateEducationDangerNotice(map);
    }

    @Override
    public List<EducationDangerNotice> findEducationDangerNoticeByPage(Map map) {
        return educationDangerNoticeDao.findEducationDangerNoticeByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationDangerNoticeDao.Total(map);
    }

    @Override
    public EducationDangerNotice findEducationDangerNoticeByEducationProfessionId(Map map) {
        return educationDangerNoticeDao.findEducationDangerNoticeByEducationProfessionId(map);
    }
}
